#!/bin/bash

echo "开始更新程序"

cd /data/git_code/ora-tob-admin


echo "从git上面拉取代码"
git pull

echo "同步到api服务器"
rsync -avz /data/git_code/ora-tob-admin/* --exclude '.git' --exclude '.gitignore' rsync://nginx@172.21.0.37/www/ora-tob-admin

echo "更新完毕！！！"
